package com.example.service.impl;

import com.example.mapper.MessageInfoMapper;
import com.example.model.MessageInfo;
import com.example.service.MessageInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: bjc
 * Date: 2025-07-12
 * Time: 15:57
 */
@Service
public class MessageInfoServiceImpl implements MessageInfoService {

    @Autowired
    private MessageInfoMapper messageInfoMapper;
    @Override
    public Integer insert(MessageInfo messageInfo) {
        return messageInfoMapper.insert(messageInfo);
    }

    @Override
    public List<MessageInfo> getList() {
        return messageInfoMapper.getList();
    }
}
